class AddFieldsToCulturesCultures < ActiveRecord::Migration
  def self.up
    add_column :cultural_heritage_cultures, :location, :text
    add_column :cultural_heritage_cultures, :language, :integer
    add_column :cultural_heritage_cultures, :dlanguage, :text
    add_column :cultural_heritage_cultures, :religion, :integer
    add_column :cultural_heritage_cultures, :dreligion, :text
    add_column :cultural_heritage_cultures, :social, :integer
    add_column :cultural_heritage_cultures, :dsocial, :text
    add_column :cultural_heritage_cultures, :economic, :text
    add_column :cultural_heritage_cultures, :period, :integer
  end

  def self.down
    remove_column :cultural_heritage_cultures, :location
    remove_column :cultural_heritage_cultures, :language
    remove_column :cultural_heritage_cultures, :dlanguage
    remove_column :cultural_heritage_cultures, :religion
    remove_column :cultural_heritage_cultures, :dreligion
    remove_column :cultural_heritage_cultures, :social
    remove_column :cultural_heritage_cultures, :dsocial
    remove_column :cultural_heritage_cultures, :economic
    remove_column :cultural_heritage_cultures, :period
  end
end
